package com.feng.chat.service;

import com.feng.chat.dto.Result;
import com.feng.chat.entity.GroupChat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.chat.vo.NoticeEditVO;

import java.util.List;

/**
 * <p>
 * 聊天群组表 服务类
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */
public interface IGroupService extends IService<GroupChat> {

    //获取好友列表
    public Result invites(Integer uid,Integer group_id);

    //创建群聊
    public Result create(Integer uid, List<Integer> ids,String group_name);

    //获取已加入的群聊列表
    public Result list(Integer uid);

    //获取群聊信息
    public Result detail(Integer uid,Integer group_id);

    //获取群聊成员
    public Result memberList(Integer group_id);

    //根据群id获取群公告信息
    public Result noticeList(Integer group_id);

    //设置用户群名片
    public Result memberRemark(Integer uid,Integer group_id,String visit_card);

    //邀请好友进群
    public Result invite(Integer uid,Integer group_id,String ids);

    //退出群聊
    public Result secede(Integer uid,Integer group_id);

    //添加群公告
    public Result noticeEdit(Integer uid, NoticeEditVO noticeEditVO);

    //修改群信息
    public Result setting(Integer group_id,String avatar,String group_name,String profile);

    //移除群成员
    public Result memberRemove(Integer uid,Integer group_id,String members_ids);

    //解散群聊
    public Result dismiss(Integer uid,Integer group_id);
}
